package cn.com.dashihui.kit;

import java.text.SimpleDateFormat;
import java.util.Date;

public class DirKit {
	public static final int COMMENT_IMG = 0;
	public static final int PERSON_LOGO = 1;
	public static final int FEEDBACK_IMG = 2;
	
	public static String getDir(int type){
		String ymd = new SimpleDateFormat("yyyy/MM/dd/").format(new Date());
		switch (type) {
		case COMMENT_IMG:
			return "/comment/"+ymd;
		case PERSON_LOGO:
			return "/person/"+ymd;
		case FEEDBACK_IMG:
			return "/feedback/"+ymd;
		}
		return ymd;
	}
}
